﻿<%@ Page Title="" Language="C#" MasterPageFile="~/sitemaster.master" AutoEventWireup="true" CodeBehind="register.aspx.cs" Inherits="Portal_KonTum.register" %>
<%@ Register Assembly="MSCaptcha" Namespace="MSCaptcha" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    </style>
    <link href="Admin/css/trangchu.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="box_center">
        <h3>Đăng Ký Thành Viên</h3>
        <div class="cat">
            <asp:Panel ID="Pane_dk" runat="server">
                <div>
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" class="notification n-error"/>
                <asp:Label ID="lb_note" runat="server" Text="Label" Enabled="False" class="notification n-error" Visible="False"></asp:Label>
            </div>
            <div class="aRow">
                <label class="leftCol">Tên tài khoản:</label>
                <asp:TextBox ID="txt_tentk" CssClass="input-medium" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFV_tentkhoan" runat="server" ErrorMessage="Chưa nhập tên tài khoản" ControlToValidate="txt_tentk" Font-Bold="True">*</asp:RequiredFieldValidator> 
            </div>
            <div class="aRow">
                <label class="leftCol">Mật khẩu:</label>
                <asp:TextBox ID="txt_matkhau" CssClass="input-medium" runat="server" TextMode="Password"></asp:TextBox>
                <label> 
                <asp:RequiredFieldValidator ID="RFV_tentkhoan0" runat="server" ErrorMessage="Chưa nhập mật khẩu" ControlToValidate="txt_matkhau" Font-Bold="False">*</asp:RequiredFieldValidator> </label>
            </div>
            <div class="aRow">
                <label class="leftCol">Gõ lại mật khẩu: </label>
                <asp:TextBox ID="txt_golaimk" CssClass="input-medium" runat="server" TextMode="Password"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txt_matkhau" ControlToValidate="txt_golaimk" ErrorMessage="Mật khẩu nhập lại chưa chính xác">*</asp:CompareValidator>
            </div>
            <div class="aRow">
                <label class="leftCol">Họ và tên :</label><asp:TextBox ID="txt_hoten" CssClass="input-medium" runat="server"></asp:TextBox>
                <label> 
                <asp:RequiredFieldValidator ID="RFV_tentkhoan2" runat="server" ErrorMessage="Chưa nhập họ tên" ControlToValidate="txt_hoten" Font-Bold="True">*</asp:RequiredFieldValidator> </label>
            </div>
            <div class="aRow">
                <label class="leftCol">Giới tính :</label>
                <asp:RadioButtonList ID="RD_sex" 
                    runat="server" RepeatDirection="Horizontal" RepeatColumns="2" Width="50%">
                    <asp:ListItem Value="0">
                        Nam
                    </asp:ListItem>
                    <asp:ListItem Value="1">
                        Nữ
                    </asp:ListItem>
                </asp:RadioButtonList>
                
            </div>
            <div class="aRow" >
                <label class="leftCol">Giấy tờ tùy thân:</label>
                <asp:DropDownList ID="DL_Indentication" CssClass="input-medium" runat="server">
                </asp:DropDownList>
            </div>
            <div class="aRow" >
                <label class="leftCol">Số giấy tờ:</label>
                <asp:TextBox ID="txt_giayto" CssClass="input-medium" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFV_tentkhoan3" runat="server" ErrorMessage="Chưa nhập số giấy tờ tùy thân" ControlToValidate="txt_giayto" Font-Bold="True">*</asp:RequiredFieldValidator> 
            </div>
            <div class="aRow" >
                <label class="leftCol">Email:&nbsp; </label>
                <asp:TextBox ID="txt_mail" CssClass="input-medium" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFV_tentkhoan4" runat="server"  ErrorMessage="Chưa nhập email" ControlToValidate="txt_mail" Font-Bold="True">*</asp:RequiredFieldValidator> 
                <asp:RegularExpressionValidator ID="regexEmailValid" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txt_mail" ErrorMessage="Chưa nhập đúng định đạng email">*</asp:RegularExpressionValidator>
            </div>
            <div class="aRow" >
                <label class="leftCol">Điện thoại:</label>
                <asp:TextBox ID="txt_dienthoai" CssClass="input-medium" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFV_tentkhoan6" runat="server"  ErrorMessage="Chưa nhập số điện thoại" ControlToValidate="txt_dienthoai" Font-Bold="True">*</asp:RequiredFieldValidator> 
            </div>
            <div class="aRow" >
                <label class="leftCol">Địa chỉ:&nbsp; </label>
                <asp:TextBox ID="txt_diachi" CssClass="input-medium" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RFV_tentkhoan5" runat="server"  ErrorMessage="Chưa nhập địa chỉ" ControlToValidate="txt_diachi" Font-Bold="True">*</asp:RequiredFieldValidator>
            </div>
            <div class="aRow" >
                <label class="leftCol">Mã bảo mật: </label>
                <cc1:CaptchaControl ID="Captcha1" runat="server" CaptchaBackgroundNoise="Low" 
                    CaptchaLength="5" CaptchaHeight="40" CaptchaWidth="200" CaptchaLineNoise="None" 
                    CaptchaMinTimeout="5" CaptchaMaxTimeout="240" FontColor = "#529E00" />
                <asp:TextBox ID="txt_baomat" CssClass="leftCol" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"  ErrorMessage="Chưa nhập bảo mật" ControlToValidate="txt_baomat" Font-Bold="True">*</asp:RequiredFieldValidator>
            </div>
            <br />
            <p>
                <asp:Button ID="bt_dangnhap" runat="server" Text="Đăng ký"  CssClass="submit-green" onclick="bt_dangnhap_Click"  />
                <asp:HyperLink ID="HyperLink1" runat="server" CssClass="submit-gray" ForeColor="White" NavigateUrl="~/Default.aspx">Hủy bỏ</asp:HyperLink>
            </p>
            </asp:Panel>
            <asp:Panel ID="Panel_sucess" runat="server">
                <asp:Label ID="lb_notes_sucess" runat="server" Text="Label" Enabled="False" class="notification n-success" Visible="False"></asp:Label>
            </asp:Panel>
        </div>
    </div>
</asp:Content>
